From d2eef91db885a4be976ca9b2376df2f8eea7fcb6 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 29 Sep 2005 17:39:33 +0100 Subject: [PATCH] Move xenbus_suspend outside critical region with interrupts disabled. Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/arch/xen/kernel/reboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c index ab8f32e531..bc596fbe09 100644 --- a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c +++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c @@ -96,6 +96,8 @@ static int __do_suspend(void *ignore) } #endif + xenbus_suspend(); + preempt_disable(); #ifdef CONFIG_SMP /* Take all of the other cpus offline. We need to be careful not @@ -140,8 +142,6 @@ static int __do_suspend(void *ignore) } #endif - xenbus_suspend(); - gnttab_suspend(); #ifdef __i386__ -- 2.30.2